#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START findutils

reset_mtime findutils findutils/configure.ac
mkdir -p build/findutils
cd build/findutils
cat > config.cache <<-EOF
gl_cv_func_wcwidth_works=yes
ac_cv_func_fnmatch_gnu=yes
EOF
../../findutils/configure \
	${CONFIGURE_ARGS} \
	--cache-file=config.cache \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/findutils

# RECIPE END findutils
